﻿using System;

namespace MessagePack.Decoders
{
	// Token: 0x020000AA RID: 170
	internal class UInt32Int64 : IInt64Decoder
	{
		// Token: 0x060002AD RID: 685 RVA: 0x0000B862 File Offset: 0x00009C62
		private UInt32Int64()
		{
		}

		// Token: 0x060002AE RID: 686 RVA: 0x0000B86A File Offset: 0x00009C6A
		public long Read(byte[] bytes, int offset, out int readSize)
		{
			readSize = 5;
			return (long)((ulong)((int)bytes[offset + 1] << 24 | (int)bytes[offset + 2] << 16 | (int)bytes[offset + 3] << 8 | (int)bytes[offset + 4]));
		}

		// Token: 0x040000CB RID: 203
		internal static readonly IInt64Decoder Instance = new UInt32Int64();
	}
}
